package com.yanzhu.service;

import com.yanzhu.service.model.Video;
import com.yanzhu.service.model.mix.VideoHot;
import com.yanzhu.service.model.mix.VideoInfo;

import java.util.List;

/**
 * @Author: 方炎柱
 * @Description:
 * @Date: Created in 10:01 2018/1/19
 * @Modified:
 */
public interface VideoService {
    int insert(Video video);

    List<VideoHot> selectByUid(long uid, int page, int size);

    String selectVideoPathById(long vid);

    List<VideoHot> queryHotVideo(int view, int page, int size);

    void updateVideoView(long vid);

    void updateVideo(Video video);

    Video selectById(long id);

    VideoInfo queryVideoInfo(long vid, long uid);

    int deleteVideoById(long id);

    int deleteVideoAll(long uid);
}
